import QtQuick 2.0
import Qt3D 1.0
import Qt3D.Shapes 1.0

Quad{
    id: _root
    effect: numList[number]

    property int number: 0
    property list<Effect> numList: [
         Effect{blending: true; texture: "../Images/Numbers/tNum_0.png"}
        ,Effect{blending: true; texture: "../Images/Numbers/tNum_1.png"}
        ,Effect{blending: true; texture: "../Images/Numbers/tNum_2.png"}
        ,Effect{blending: true; texture: "../Images/Numbers/tNum_3.png"}
        ,Effect{blending: true; texture: "../Images/Numbers/tNum_4.png"}
        ,Effect{blending: true; texture: "../Images/Numbers/tNum_5.png"}
        ,Effect{blending: true; texture: "../Images/Numbers/tNum_6.png"}
        ,Effect{blending: true; texture: "../Images/Numbers/tNum_7.png"}
        ,Effect{blending: true; texture: "../Images/Numbers/tNum_8.png"}
        ,Effect{blending: true; texture: "../Images/Numbers/tNum_9.png"}
    ]

    onNumberChanged: {
        console.debug("NUM:" + number);
    }

    transform: [
        Rotation3D{ angle: 90; axis: Qt.vector3d(1, 0, 0) }
    ]
}
